# -*- coding:utf-8 -*-

from com.mat.rpa.utils.globalConstants import GlobalConstants
from com.mat.rpa.views.workWindow.leftPanel.directiveTree import treeItem
from . import inputMethodOperationConstants

class InputMethodOperationSubDirectiveTree(treeItem.TreeItemWithID):
    def __init__(self, parent):
        super(InputMethodOperationSubDirectiveTree, self).__init__(parent)
        self.createInputMethodOperationTreeNode()

    def createInputMethodOperationTreeNode(self):
        self.nodeType = GlobalConstants.treeBranchType
        self.directiveType = "inputMethodOperations"
        self.setText(0,"输入法操作")
        self.createTreeNode(GlobalConstants.treeLeafType,
                            self, inputMethodOperationConstants.InputMethodOperationConstants.gettingInputMethodDirective, "获取输入法")
        self.createTreeNode(GlobalConstants.treeLeafType,
                            self, inputMethodOperationConstants.InputMethodOperationConstants.settingInputMethodDirective, "设置输入法")